<?php $this->headTitle()->append('Apuestas realizadas'); ?>


<table class="fixture" style="width:600px !important;">	
<?php IF($this->data[0]): ?>	 		
	<thead>
		<tr>
			<th colspan="4">
			<img class="flagSmall" width="19" height="13" src="<?= auto_version('/assets/img/'.$this->data[0]['band_local']) ?>" alt="<?= $this->data[0]['nombre_local'] ?>">
			<?= $this->data[0]['nombre_local'] ?> - <?= $this->data[0]['nombre_visitante'] ?>
			<img class="flagSmall" width="19" height="13" src="<?= auto_version('/assets/img/'.$this->data[0]['band_visitante']) ?>" alt="<?= $this->data[0]['nombre_visitante'] ?>">
			</th>
		</tr>
		<tr>
			<th colspan="4"><?= $this->data[0]['goles_local'].' - '.$this->data[0]['goles_visitante'] ?></th>
		</tr>
		<tr>			
			<td class="l" >Usuario</td>			
			<td class="l"> Pa&iacute;s</td>
			<td class="c" >Apuesta</td>		
			<td class="c" >Puntos</td>		
	

		</tr>
	</thead>
	<?php $parity='odd'; ?>
	
	
	<tbody>
	
	<?php FOREACH($this->data as $key=>$row): ?>	
		<tr class="<?= $parity ?>" >
 			<td class="l"><?= $row['alias'] ?></td>
			<td class="l"><img class="flagSmall" width="19" height="13" src="<?= auto_version('/assets/img/country-flags/'.$row['bandera'].'.png') ?>" alt="<?= $row['short_name'] ?>"></td>
 			<td class="c"><?= $row['apuesta_goles_local'].' - '.$row['apuesta_goles_visitante'] ?></td>
 			<td class="c"><?= $row['puntos_obtenidos'] ?></td>
		</tr>
	
		<?php $parity = ($parity=='odd')?'even':'odd';?>	
		<?php ENDFOREACH ?>

	</tbody>
<?php ELSE: ?>
	<thead>
		<tr>
			<th colspan="4">
				No se han realizado apuestas para este partido.
			</th>
		</tr>
	</thead>
<?php ENDIF ?>
</table>
